package com.msb.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.utils.PageUtils;
import com.msb.common.vo.CommonPageReq;
import com.msb.common.vo.CommonResult;
import com.msb.mall.core.entity.ware.PurchaseEntity;
import com.msb.mall.core.vo.ware.MergeVO;
import com.msb.mall.core.vo.ware.PurchaseDoneVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author leixu
 * @email xuleiwolf@163.com
 * @date 2024-04-19 20:31:49
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageCondition(CommonPageReq<Map<String, Object>> params);

    List<PurchaseEntity> queryListUnReceive(Map<String, Object> params);

    CommonResult mergeCheck(MergeVO mergeVO);

    CommonResult merge(MergeVO mergeVO) throws Exception;

    void received(List<Long> ids);

    void done(PurchaseDoneVO vo);
}

